home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-23 | 4.4 KB | 94 lines | [TEXT/ttxt] |
- 4 Working with Volumes
- This section describes the MacDOS commands which let you
- work with volumes. Refer to the section "Data on the Mac"
- for an introduction to the concept of "volume".
-
- Many MacDOS commands let you specify a volume as part of
- parameters which identify files and folders. In those
- cases, if you do not specify a particular volume, MacDOS
- assumes that the files or folders are on what is called the
- "current volume".
-
- When you launch MacDOS, it automatically sets the current
- volume to the volume that contains the MacDOS application.
- If you never need to refer to other volumes (like floppies
- and other hard disks), you can work with MacDOS without
- ever having to specify a volume at all.
-
- MacDOS identifies volumes through volume IDs. You can
- assign new IDs to volumes, display data of particular
- volumes, and operate on different volumes.
-
- Volume IDs
- The Mac OS uses a number called Volume Reference Number to
- identify a volume. MacDOS extends this concept to that more
- general one of volume ID by including user-assigned
- letters.
-
- You assign literal volume IDs to volumes with the command
- SUBSTVOL, which operates on volumes regardless of whether
- they are mounted or not. Therefore, you can set up your
- literal volume IDs before mounting the corresponding
- volumes. Nevertheless, you will not be able to use the new
- IDs until you actually mount the volumes they identify.
-
- If you want to know all current assignments, type SUBSTVOL
- without parameters.
-
- Whenever a volume ID could be confused with something else,
- you need to append a colon. For instance, if you type
- "DIR c", MacDOS attempts to display the directory entry of
- the file named 'c'. If you want to list the content of
- volume 'C', you need to type "DIR c:". If you take the
- habit of always typing the colon, you cannot ever be wrong.
-
- The startup volume is always identified by volume ID 1.
-
- Displaying Volumes
- If you want to know the ID and name of the current volume,
- type the command VOL and MacDOS will provide the
- information. VOL also notifies you when a volume is locked.
-
- If you want to have information on a volume other than the
- current one, type VOL followed by the volume ID of the
- volume you are interested in. Also the commands DIR and CD
- display ID and volume name (together with other
- information).
-
- If you execute the command PROMPT with the options $N or
- $P, MacDOS will include the ID of the current volume in the
- command prompt.
-
- Changing the Current Volume
- When MacDOS is launched, the current volume is
- automatically set to the volume which contains the MacDOS
- application file. This is true regardless of whether you
- launch MacDOS by double clicking on a text file with
- creator 'mDOS', on an alias of MacDOS, or on the
- application file itself.
-
- To make a different volume current (in jargon: to attach to
- a different volume), just type the new volume ID, a colon,
- and RETURN. MacDOS interprets a volume ID on its own as a
- request to change the current volume, checks whether the
- requested volume is mounted, and attaches to it.
-
- You can attach to any mounted volume, regardless of whether
- it is on-line or not. Only when MacDOS needs to access the
- volume it checks whether the volume is off-line and asks
- you to put it back on-line (eg. to re-introduce the
- floppy).
-
- MacDOS commands recognise volumes through their IDs, but
- the requests to put a volume back on-line refer to volume
- names. If you realise that the name is different from what
- you expected and want to go back to the MacDOS prompt, type
- cmd-dot or cntl-C.
-
- Ejecting volumes
- You can dismount removable volumes (eg. floppies) with the
- command EJECT followed by the volume ID. If you just want
- to put the volume off-line but keep its icon on the
- desktop, type the same command with the switch /E.
-
-